<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp" %>
<%-- Success Messages --%>
<c:if test="${not empty messages}">
    <div class="message" id="ui-state-highlight ui-corner-all">    
        <c:forEach var="msg" items="${messages}">
            <img src="<c:url value="/img/iconInformation.gif"/>"
                alt="Information" class="icon" />
            <c:out value="${msg}"/><br />
        </c:forEach>
    </div>
    <c:remove var="messages" scope="session"/>
</c:if>

<%-- Error Messages --%>
<c:if test="${not empty errors}">      
    <div class="error" id="ui-state-error ui-corner-all">
        <c:forEach var="error" items="${errors}">
            <img src="<c:url value="/img/iconWarning.gif"/>"
                alt="Warning" class="icon" />
            <spring:message message="${error}"/>
            <br />
        </c:forEach>    
    </div>      
</c:if>        